//
//  UILabel+YYAdd.h
//  Commom
//
//  Created by 山刘 on 2019/3/27.
//  Copyright © 2019年 山刘. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UILabel (Bussi)
// 初始化UILabel
+(UILabel*)labelWithFrame:(CGRect)frame
                 WithFont:(UIFont*)font
                  WithTag:(NSInteger)tag
      WithBackgroundColor:(UIColor*)backgroundColor
            WithTextColor:(UIColor*)textColor
        WithTextAlignment:(NSTextAlignment)textAlignment
                 WithText:(NSString*)text
          WithBorderColor:(CGColorRef)borderColor
          WithBorderWidth:(CGFloat)borderWidth;

// 初始化UILabel
+(UILabel*)labelWithFrame:(CGRect)frame
                 WithFont:(UIFont*)font
                  WithTag:(NSInteger)tag
            WithTextColor:(UIColor*)textColor
        WithTextAlignment:(NSTextAlignment)textAlignment
                 WithText:(NSString*)text;

// 设置UILabel字体边框颜色、宽度
-(void)labelWithBorderColor:(CGColorRef)borderColor
            WithBorderWidth:(CGFloat)borderWidth;

/// 判断用户的权限
- (void)userAuthorWithcode:(NSString*)isAuth;

//TITLE_WIDTH固定宽度
-(void)extendAttributedString:(NSString*)text lineSpace:(CGFloat)lineSpace font:(UIFont *)font;
-(void)extendAttributedString:(NSString*)text lineSpace:(CGFloat)lineSpace font:(UIFont *)font color:(UIColor *)color;
-(void)extendAttributedString:(NSString*)text lineSpace:(CGFloat)lineSpace font:(UIFont *)font width:(CGFloat)width;

- (void)extendAttributedString:(NSString *)text lineSpace:(CGFloat)lineSpace font:(UIFont *)font color:(nonnull UIColor *)color lineBreakMode:(NSLineBreakMode)lineBreakMode;
@end

NS_ASSUME_NONNULL_END
